var config = {
	"id": "mi_area",//图表的唯一id
	"event_key": "fold_list",
	"component_type": "mi-area",
	"chart_config": {
		"title": "<p>这是标题</p>",//图标的标题 支持html
		"render": {//渲染chart时的配置
			"position": "month*temp",//x和y轴的数据对应的字段 x轴显示month字段 y轴显示temp字段
			"isGroup": 0,//是否分组 以groupField 分组
			"groupField": "city",//分组字段 以哪个字段进行分组 isGroup为1时生效
			"groupShape": {//isGroup为1 时生效 对应的分组的连线的样式 如果没有配置 则取shape
				"London": "line",
				"Berlin": "smooth"
			},
			"shape": "line"//line 直线 dash 打点虚线 smooth 曲线  默认line
		},
		"source": {//列定义配置  参考 https://www.yuque.com/antv/f2/api-chart#z7ockv

		},
		"legend": {//图例配置
			"show": "",//如果设置为 false 则代表不显示所有图例 
			"config": {
				"field1": {//field1  field1对应的图例配置 参考 https://www.yuque.com/antv/f2/api-legend#ol5opw
					
				},
				"field2": {

				},
			}

		},
		"tooltip":{
			"show":"",
			"config":{// 参考 https://www.yuque.com/antv/f2/tooltip#6puach

			}
		}
	}
}

/*
{
	"id": "mi_area",
	"event_key": "area_list",
	"component_type": "mi-area",
	"chart_config": {
		"title": "<p>这是标题</p>",
		"render": {
			"position": "month*temp",
			"groupField": "city",
			"shape": "dash",
			"isGroup": 0,
			"groupShape": {
				"Berlin": "line",
				"London": "dash"
			}
		},
		"source": {
			"temp": {
				"min": 1,
				"max": 200
			}
		},
		"legend": {
			"show": true,
			"config": {
				"city": {
					"position": "left"
				}
			}
		},
		"tooltip": {
			"show": true,
			"config": {
				"custom": true,
				"showXTip": true,
				"showYTip": true,
				"snap": true,
				"showCrosshairs":true,
				"crosshairsType": "xy",
				"crosshairsStyle": {
					"lineDash": [
						2
					]
				}
			}
		}
	}
}
*/
//数据源格式
var data = {//返回格式不固定 根据返回格式来配置config
	"id": "fold_list",
	"options": [
		{
			"city": "London",
			"temp": 18.9,
			"month": "一"
		},
		{
			"city": "London",
			"temp": 28.8,
			"month": "二"
		},
		{
			"city": "London",
			"temp": 39.3,
			"month": "三"
		},
		{
			"city": "London",
			"temp": 81.4,
			"month": "四"
		},
		{
			"city": "London",
			"temp": 47,
			"month": "五"
		},
		{
			"city": "London",
			"temp": 12,
			"month": "六"
		},
		{
			"city": "London",
			"temp": 24,
			"month": "七"
		},
		{
			"city": "London",
			"temp": 35.6,
			"month": "八"
		},
		{
			"city": "Berlin",
			"temp": 12.4,
			"month": "一"
		},
		{
			"city": "Berlin",
			"temp": 23.2,
			"month": "二"
		},
		{
			"city": "Berlin",
			"temp": 34.5,
			"month": "三"
		},
		{
			"city": "Berlin",
			"temp": 99.7,
			"month": "四"
		},
		{
			"city": "Berlin",
			"temp": 52.6,
			"month": "五"
		},
		{
			"city": "Berlin",
			"temp": 35.5,
			"month": "六"
		},
		{
			"city": "Berlin",
			"temp": 37.4,
			"month": "七"
		},
		{
			"city": "Berlin",
			"temp": 42.4,
			"month": "八"
		}
	],
	"source_type": "option"
}